package com.eco.fanliapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eco.fanliapp.common.response.ServerResponse;
import com.eco.fanliapp.entity.Administrator;

import java.util.HashMap;

public interface IAdministratorService extends IService<Administrator>
{

    /**
     * 根据用户名称查找
     *
     * @param administratorName
     * @return
     */
    Administrator findByAdministratorName(String administratorName);

    /**
     * 查询
     */
    Administrator findByAdministratorNameAndAdministratorPassword(HashMap<String, Object> params);

    ServerResponse insertUserNameAndPwd(HashMap<String, Object> hashMap);

    int update(HashMap<String, Object> hashMap);
}
